var query = require('./pool').query

var sql = "select * from user where username=? and password=?"
var val = ["user", "user"]

query(sql, val, function (err, res) {
    if (err) throw err;
    console.log(res);
})